<?php
/*
 * 手机客户端帐户-我的店铺-订单删除接口
 * 2014-03-25
 * 2014-05-08 (已查)
 */
include "inc/public_header.php";

include "func/user.php";				//用户信息处理函数


$reJson = array(); //构建返回值

$orderId 		= $_REQUEST["orderId"];		

//获取用户信息
$uInfoArr = user_getInfoFromUUID();
if(!$uInfoArr){
	echo json_encode(array("success"=>"0","errCode"=>"0","msg"=>"没有获取到用户信息"));
	die;
}
$uid = $uInfoArr["uid"];//用户信息主键

$sql ="select uid from shop_order where uid='".$uid."' and id='".$orderId."'";
$db->query($sql);
if ($db->next_record()){
$sql1 = "update shop_order set del_type='1' where id='".$orderId."'";
$db1->query($sql1);

}
$reJson["success"] = "1";
echo json_encode($reJson);
	
?>
